import java.util.Observable;

/**
 * @author gaopeng
 * @date 2019/12/16 9:47 下午
 */
public class HanFeiZi extends Observable implements IHanFeiZi {
    @Override
    public void haveFun() {
        System.out.println("我在玩。。");
        super.notifyObservers("韩非子在玩");
    }

    @Override
    public void haveRun() {
        System.out.println("我在跑。。");
        super.notifyObservers("韩非子在跑");
    }

    @Override
    protected synchronized void setChanged() {
        super.setChanged();
    }
}
